package model

import (
	//"context"

	"context"
	"service/ctrl"
	"service/model/mod"

	gpb "gitee.com/cloudapex/protos/pro_know/pb"
	"google.golang.org/grpc"
)

var ProKnowLe proknowle

func init() {
	ctrl.GCon.RegistClienter(mod.GCONN_KB_PRO, func(c *grpc.ClientConn) {
		ProKnowLe.cli = gpb.NewProKnowLedgeClient(c)
	})
}

//(1项目知识,2:报考条件 3.成单秘籍)
type proknowle struct {
	cli gpb.ProKnowLedgeClient
}

//获取列表
func (this *proknowle) GetProKnowList(ctx context.Context, in *gpb.ProKnowListReq) (*gpb.ProKnowListRes, error) {
	return this.cli.GetProKnowList(ctx, in)
}

//删除数据
func (this *proknowle) DelProKnow(ctx context.Context, in *gpb.ProKnowReq) (*gpb.ProKnowRes, error) {
	return this.cli.DelProKnow(ctx, in)
}

//添加数据

func (this *proknowle) AddProKnow(ctx context.Context, in *gpb.ProKnowReq) (*gpb.ProKnowRes, error) {
	return this.cli.AddProKnow(ctx, in)
}

//获取单条数据
func (this *proknowle) GetProKnow(ctx context.Context, in *gpb.ProKnowReq) (*gpb.ProKnowRes, error) {
	return this.cli.GetProKnow(ctx, in)
}

//编辑数据

func (this *proknowle) EditProKnow(ctx context.Context, in *gpb.ProKnowReq) (*gpb.ProKnowRes, error) {
	return this.cli.EditProKnow(ctx, in)
}

//获取学历列表

func (this *proclass) GetSchList(ctx context.Context, in *gpb.SchoolMajorReq) (*gpb.SchoolMajoListRes, error) {
	return this.cli.GetSchList(ctx, in)

}
